#include "cppTutorCreator.h"

//Create the abstract 'Creator' class
Document :: Document()
{
    Log << "ENTER : Document :: Document ()" << endl;
    //CreatePages(); - Cannot be called directly in constructor because its virtual
    //Should be called in the Derived class
    Log << "EXIT  : Document :: Document ()" << endl;
}

void Document :: AddPages(Page* page)
{
    Log << "ENTER : Document :: AddPages ()" << endl;
    pages_.push_back(page);
    Log << "EXIT  : Document :: AddPages ()" << endl;
}

const std::list<Page*>& Document :: GetPages(void)
{
    Log << "ENTER : Document :: GetPages ()" << endl;
    Log << "EXIT  : Document :: GetPages ()" << endl;
    return pages_;
}
